/**
 * 
 */
package com.googlecode.xcarve.coder;

import io.netty.buffer.ByteBuf;

import com.googlecode.xcarve.object.NettyMessage;

/**
 * @author xinyun.d
 *
 */
public interface Coder {
	
	public static final byte HEAD_FIRST = 0x10;
	
	public void encode(NettyMessage msg,ByteBuf buf) throws Exception;
	
	public Object decode(ByteBuf in)throws Exception;
}
